package cn.kgc.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/4/23
 * @Description:
 */
@FeignClient(value = "HYSTRIXCLIENT",fallback = HystrixClientFallback.class)
public interface HystrixClient {

    @RequestMapping("/user/m1")
    Map<String,Object> method1(@RequestParam("id") Integer id);

}
